package com.jwdf.uda.ui.adapter.item;

import com.jwdf.uda.bean.PbBean;

import java.util.ArrayList;
import java.util.List;

/**
 * 类说明：
 */
public class UserSimpleItem {
    public PbBean.PbUserSimple userSimple;//
    public PbBean.PbSignUserFollowType type;//关注类型
    public boolean isInvite;

    public static UserSimpleItem convert(PbBean.PbUserSimple userSimple) {
        UserSimpleItem item = new UserSimpleItem();
        item.userSimple = userSimple;
        item.type = userSimple.getFollowType();
        item.isInvite=userSimple.getIsInvite();
        return item;
    }

    public static List<UserSimpleItem> convert(List<PbBean.PbUserSimple> simpleList) {
        List<UserSimpleItem> items = new ArrayList<>();
        for (int i = 0; i < simpleList.size(); i++) {
            items.add(convert(simpleList.get(i)));
        }
        return items;
    }
}
